<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="nav" content="1" />
<meta name="acc" content="4-1" />
<title>我的日志</title>
<script type="text/javascript">
	$(document).ready(function() {
		 $("#workDateBeg").addClass("Wate").bind("click", function(){
   	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'#F{$dp.$D(\'workDateEnd\')}',dateFmt:'yyyy-MM-dd'});});
		 $("#workDateEnd").addClass("Wate").bind("focus", function(){
   	 WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'workDateBeg\')}',dateFmt:'yyyy-MM-dd'});});
		});
</script>
</head>
<body>
<div id="heading" class="worklog"><h6>日志列表</h6></div>
<form id="mainForm" action="${ctx }/app/worklog.action" method="get" class="yform">
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<div id="filter">
<ul>
<li>日志类型:<pt:code prompt="全部" category="1007" name="filter_LIKES_type" default="${param['filter_LIKES_type'] }"></pt:code></li>
<li>使用日期:<input type="text" id="workDateBeg" name="filter_GED_workDate" value="${param['filter_GED_workDate'] }"/></li>
<li>到:<input type="text" id="workDateEnd" name="filter_LED_workDate" value="${param['filter_LED_workDate'] }"/></li>
</ul>
<div class="type-button"><input  type="button" value="查询" onclick="search();" class='search' /></div>	
</div>
<div id="content">
<table id="contentTable">
	<tr>
		<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
		<th><a id="workDate" href="javascript:sort('workDate','asc')">工作日期</a></th>
		<th><a id="type" href="javascript:sort('type','asc')">日志类型</a></th>
		<th><a id="task" href="javascript:sort('task','asc')">工作任务</a></th>		
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="worklog" varStatus="var">
		<tr>
			<td>${page.first+var.index}</td>
			<td>${worklog.workDate }</td>
			<td>${worklog.type}</td>
			<td>${worklog.task}</td>		
			<td><a
				href="${ctx }/app/worklog!input.action?id=${worklog.id}">编辑</a> <a
				href="${ctx }/app/worklog!delete.action?id=${worklog.id}" onclick="return confirmDelete();">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
<div class="type-button"><input class="submit" type="button" onclick="location.href='${ctx}/app/worklog!input.action'" value="新增"/></div>
</form>
</body>
